package com.example.designpattern.behavioral.interpreter;

public class Add extends Operator {

    public Add(Expression left, Expression right) {
        super(left, right);
    }

    @Override
    public int interpret() {
        return left.interpret() + right.interpret();
    }
}